﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Crossroad.OAuth.Model
{
    ///<summary>
    ///oauth2.0授权客户端表
    ///</summary>
    [SugarTable("oauth_clients")]
    public partial class Client : ModelContext
    {
        public Client()
        {
        }

        /// <summary>
        /// Desc:授权类型
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "grant_types")]
        public string grantTypes { get; set; }

        /// <summary>
        /// Desc:跳转url
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "redirect_uri")]
        public string redirectUri { get; set; }

        /// <summary>
        /// Desc:权限范围
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string scope { get; set; }

        /// <summary>
        /// Desc:客户端id
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, ColumnName = "client_id")]
        public string clientId { get; set; }

        /// <summary>
        /// Desc:客户端密钥
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(ColumnName = "client_secret")]
        public string clientSecret { get; set; }

    }
}
